/*
 * @Author: your name
 * @Date: 2021-09-17 09:08:32
 * @LastEditTime: 2021-09-17 09:36:59
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: \xxtx-ui\src\filters\index.js
 */
import moment from 'moment'


export function fmtDate(date){
  return date?moment(date).format('YYYY-MM-DD'):'';
}
export function fmtTime(date){
  return date?moment(date).format('YYYY-MM-DD HH:mm:ss'):'';
}